package com.zxl.security.core.validate.code.image;

import com.zxl.security.core.validate.code.ValidateCode;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
public class ImageCode extends ValidateCode {
    private transient BufferedImage image;

    public ImageCode(String code, LocalDateTime expireTime) {
        super(code, expireTime);
    }

    public ImageCode(String code, long expireIn) {
        super(code, expireIn);
    }

    public ImageCode(BufferedImage image, String code, long expireIn){
        super(code, expireIn);
        this.image = image;
    }
}
